package com.yikome.shop.entity;

import java.util.List;

import javax.persistence.Entity;
import javax.persistence.Index;
import javax.persistence.Table;

import javax.persistence.Transient;

import com.yikome.common.BaseEntity;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Getter
@Setter
@NoArgsConstructor
@Entity
@Table(name = "s_shop_nav", indexes = {@Index(columnList = "shopId") , @Index(columnList = "parentId")})
public class Navigation extends BaseEntity {

	private static final long serialVersionUID = -5394701305125936611L;

	private Long shopId ; 
	
	private String name ; 
	
	private Integer priority ; 
	
	private Boolean isShow ;
	
	private String thumb ; 
	
	private Long parentId ; 
	
	private String comments ;
	
	@Transient
	private List<Navigation> childrens ; 
}
